package com.zwj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author zwj
 * @since 2021-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="UserEntity对象", description="用户信息表")
public class UserEntity implements Serializable {

    private static final long serialVersionUID=1L;
    @JsonIgnore
    @ApiModelProperty(value = "物理id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "用户编号")
    @TableField("user_no")
    private String userNo;

    @ApiModelProperty(value = "用户类型，参见RoleType枚举")
    @TableField("role_type")
    private String roleType;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "身份证号")
    @TableField("id_no")
    private String idNo;

    @ApiModelProperty(value = "性别，参见Sex枚举")
    @TableField("sex")
    private String sex;

    @ApiModelProperty(value = "手机号")
    @TableField("mobile_no")
    private String mobileNo;

    @ApiModelProperty(value = "职位，参见Position枚举")
    @TableField("position")
    private String position;
    @JsonIgnore
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;
    @JsonIgnore
    @ApiModelProperty(value = "登录凭证")
    @TableField("login_token")
    private String loginToken;
    @JsonIgnore
    @ApiModelProperty(value = "状态，参见YesOrNo枚举")
    @TableField("status")
    private String status;
    @JsonIgnore
    @ApiModelProperty(value = "是否首次登录，参见YesOrNo枚举")
    @TableField("is_first_login")
    private String isFirstLogin;

    @ApiModelProperty(value = "头像地址")
    @TableField("logo_url")
    private String logoUrl;
    @JsonIgnore
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;
    @JsonIgnore
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    @TableField("del_flag")
    private String delFlag;
    @JsonIgnore
    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private String createBy;
    @JsonIgnore
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;
    @JsonIgnore
    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private String updateBy;
    @JsonIgnore
    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private String updateTime;


}
